import fs from "fs";
import express from "express";
import ExpressApp from "../service/express/Express.app";
import serverConfig from '../config/server.config';

ExpressApp.get('/prefabImage/fetch', express.json(), (req, res) => {
  try {
    const prefab = fs.readFileSync(`${serverConfig.app.exportUrl}/prefabImage.json`)

    res.send(prefab)
  } catch (error) {
    res.status(503).send(error)
  }
});
